package cn.lzm.system.mapper;

import cn.lzm.system.domain.Role;
import cn.lzm.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzm
 * @since 2022-10-24
 */
public interface RoleMapper extends BaseMapper<Role> {

    void delPermissionRoleByRid(Long rid);

    void delMenuRoleByRid(Long rid);

    void addPermissionRoleByRid(@Param("rid")Long rid, @Param("permission")List permission);

    void addMenuRoleByRid(@Param("rid")Long rid, @Param("menu")List menu);

    List<Long> findPermissionRoleByRid(Long id);

    List<Long> findMenuRoleByRid(Long id);
}
